<template>
  <div id="app">
    <router-view v-wechat-title='$route.meta.title+" - "+this.title' v-if="flag"/>
  </div>
</template>

<script>
export default {
  name: 'App',
  data () {
    return {
      title: 'LSE API',
      flag: true
    }
  },
  provide () {
    return {
      reload: this.reload
    }
  },
  methods: {
    reload () {
      // this.flag = false
      // this.$nextTick(() => {
      //   this.flag = true
      // })
      location.reload()
    }
  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
}
*{
    margin: 0;
    padding: 0;
}
body,html,#app{
    margin: 0;
    padding: 0;
    height: 100%;
}
ul,li{
  list-style: none;
}
.router-link-active,a {
    text-decoration: none;
}
>>>.el-scrollbar__wrap{
  margin: 0;
  padding: 0;
}
>>>.ivu-row{
  height: 100%;
}
>>>.ivu-col{
  height: 100%;
}
/* 重添加样式 */
.lse_toast{
  z-index: 99999
}
.el-avatar{
  border-radius: 0;
  background: transparent;
  color: black;
  box-shadow: 5px 5px 6px rgba(0, 0, 0, 0.3);
}
>>>.el-avatar img{
  margin: auto
}
</style>
